package com.czy.workflow.core.selector;

import com.czy.workflow.core.model.OperationType;

public class NodeBranchSelectorFactory {


    public static NodeBranchSelector createNodeBranchSelector(OperationType operationType){
        if(OperationType.START == operationType || OperationType.AUTO == operationType){
            return new AutoNodeBranchSelector();
        }else if(OperationType.OPTION == operationType){
            return new OptionalNodeBranchSelector();
        }else if(OperationType.END == operationType){
            return new EmptyNodeBranchSelector();
        }

        return null;
    }


}
